Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comiler fixes #19953

Closed
wants to merge 4 commits into from
Closed

Comiler fixes #19953

wants to merge 4 commits into from

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Oct 26, 2017

No description provided.

Previously, `listLazyRoute` would store invalid information in a compiler
internal cache, which lead to incorrect paths that were used during emit.
This commit fixes this.
This prevents errors reported against `.ngfactory.ts` files show up
as the result of running `ngc`.

Closes angular#19935
@mary-poppins
Copy link

You can preview ae24430 at https://pr19953-ae24430.ngbuilds.io/.

@tbosch tbosch added this to For 5.0 Final in Compiler Oct 26, 2017
@tbosch tbosch added area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Oct 26, 2017
@@ -214,6 +214,8 @@ export function performWatchCompilation(host: PerformWatchHost):
host.reportDiagnostics(
[createMessageDiagnostic('Compilation complete. Watching for file changes.')]);
} else {
// clear out the cachedProgram as we can only use it as the `oldProgram` 1x.
cachedProgram = undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

save the a local copy of this and set it to undefined before calling performCompilation

This also changes the compiler so that we throw less often
on structural changes and produce a meaningful state
in the `ng.Program` in case of errors.

Related to angular#19951
@matsko matsko added the action: merge The PR is ready for merge by the caretaker label Oct 26, 2017
@mary-poppins
Copy link

You can preview b778358 at https://pr19953-b778358.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 67b2ce6 at https://pr19953-67b2ce6.ngbuilds.io/.

@matsko matsko closed this in a869aee Oct 27, 2017
matsko pushed a commit that referenced this pull request Oct 27, 2017
…#19953)

This prevents errors reported against `.ngfactory.ts` files show up
as the result of running `ngc`.

Closes #19935
PR Close #19953
matsko pushed a commit that referenced this pull request Oct 27, 2017
This also changes the compiler so that we throw less often
on structural changes and produce a meaningful state
in the `ng.Program` in case of errors.

Related to #19951

PR Close #19953
matsko pushed a commit that referenced this pull request Oct 27, 2017
matsko pushed a commit that referenced this pull request Oct 27, 2017
…19953)

Previously, `listLazyRoute` would store invalid information in a compiler
internal cache, which lead to incorrect paths that were used during emit.
This commit fixes this.

PR Close #19953
matsko pushed a commit that referenced this pull request Oct 27, 2017
…#19953)

This prevents errors reported against `.ngfactory.ts` files show up
as the result of running `ngc`.

Closes #19935
PR Close #19953
matsko pushed a commit that referenced this pull request Oct 27, 2017
This also changes the compiler so that we throw less often
on structural changes and produce a meaningful state
in the `ng.Program` in case of errors.

Related to #19951

PR Close #19953
matsko pushed a commit that referenced this pull request Oct 27, 2017
@tbosch tbosch removed this from For 5.0 Final in Compiler Oct 27, 2017
alexeagle added a commit to alexeagle/angular that referenced this pull request Oct 30, 2017
alexeagle added a commit to alexeagle/angular that referenced this pull request Oct 30, 2017
…ngular#19953)"

This reverts commit 957be96.
This broke error reporting: instead of a real error message, we just get
an error that a non-existing ngfactory.ts file is missing.
@tbosch tbosch deleted the fix_multiimport branch November 1, 2017 16:16
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants